// 轮播图相关的接口
import instance from "@/utils/request";

// 轮播图列表接口
export function getProductlistApi(data: { count: number, limitNum: number }) {
    return instance({
        url: '/admin/pro/list',
        method: 'get',
        params: data
    })
}

// 是否售卖/秒杀/推荐 接口
export function updateFlagApi(data: { proid: string, type: string, flag: boolean }) {
    return instance({
        url: '/admin/pro/updateFlag',
        method: 'post',
        data: data
    })
}
